package com.ihmp.common;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;

public class CommonUtils {
	
	
	
	public static boolean isLogin(HttpServletRequest request){
		boolean flag = true;
		if(request.getSession().getAttribute("user") == null){
			flag = false;
		}		
		return flag;
	}
	
	public static int getGridRecord(){
		return 50;
	}
	
	public static HashMap<Integer, String> getHotelMap(){
		HashMap<Integer, String> hotelMap = new HashMap<Integer,String>();
		//List<Thotels> hotelList = hotelsDao.listHotels();
//		for(int i = 0 ; i < hotelList.size();i++){
//			hotelMap.put(hotelList.get(i).getHotelId(),hotelList.get(i).getHotelName());
//		}
		return hotelMap;
	}
}
